package com.roper.yygh.cmn.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.roper.yygh.model.cmn.Dict;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * Description: 数据字典service
 * Date:      2021/6/30 14:17
 * author:    LPH
 * version:   V1.0
 */
public interface DictService extends IService<Dict> {

    /**
     * 根据父节点id获取所有的子节点id
     * @param id 父节点id
     * @return 结果
     */
   public List<Dict> findChildData(Long id);

   public void exportDictData(HttpServletResponse response);

   public void importData(MultipartFile file);

    String getName(String dictCode, String value);

    List<Dict> findByDictCode(String dictCode);
}
